package com.design.designmode.struct.combine;

import java.util.List;

/**
 * @author hxl
 * @since 2023-04-16
 */
public abstract class Component {
    protected String name;

    protected void printName() {
        System.out.println(name);
    }

    public abstract boolean add(Component component);
    public abstract boolean remove(Component component);

    public abstract List<Component> getChildren();
}
